import { axios } from '@/libs/util' 
export const GetXFYAssessType = () => {
  return axios.get('api/XFY/GetXFYAssessType')
}

export const SaveXFYAssessType = formData => {
  return axios.post('api/XFY/SaveXFYAssessType', formData)
}

export const DeleteXFYAssessType = id => {
  return axios.delete('api/XFY/DeleteXFYAssessType/'+id)
}
export const SaveXFYGroup = formData => {
  return axios.post('api/XFY/SaveXFYGroup', formData)
}
export const ImportXFYAssessType = formData => {
  return axios.post('api/XFY/ImportXFYAssessType', formData)
}
export const ImportAssessXFY = formData => {
  return axios.post('api/XFY/ImportAssessXFY', formData)
}

export const SearchXFYGrouphasPage = formData => {
  return axios.post('api/XFY/SearchXFYGrouphasPage', formData)
}

export const  SearchAssessXFY = formData => {
  return axios.post('api/XFY/SearchAssessXFY', formData)
}

export const BeginOrgAssess = id => {
  return axios.post('api/XFY/BeginOrgAssess/'+id)
}
export const SaveOrgAssess = formData => {
  return axios.post('api/XFY/SaveOrgAssess', formData)
}

export const SavedXFYGroup = id => {
  return axios.post('api/XFY/SavedXFYGroup/'+id)
}

export const DeleteXFYGroup = id => {
  return axios.delete('api/XFY/DeleteXFYGroup/'+id)
}
export const SaveAssessXFY = formData => {
  return axios.post('api/XFY/SaveAssessXFY', formData)
}
export const DeleteAssessXFY = id => {
  return axios.delete('api/XFY/DeleteAssessXFY/'+id)
} 

export const BeginXFYAssess = id => {
  return axios.post('api/XFY/BeginXFYAssess/'+id)
}
export const GetXFYItemImg = id => {
  return axios.get('api/XFY/GetXFYItemImg/'+id)
}
export const GetXFYAssessInfo = id => {
  return axios.get('api/XFY/GetXFYAssessInfo/'+id)
}
export const GetXFYAssessInfoHasImg = id => {
  return axios.get('api/XFY/GetXFYAssessInfoHasImg/'+id)
}


export const GetAreaYear = () => {
  return axios.get('api/XFY/GetAreaYear')
}

export const TransXFYGroup = formData => {
  return axios.post('api/XFY/TransXFYGroup', formData)
}
export const GetXFYTown = groupid => {
  return axios.get('api/XFY/GetXFYTown?groupid='+groupid)
}
export const SearchXfyWorkDetail =formData=> {
  return axios.post('api/XFY/SearchXfyWorkDetail',formData)
}